package com.huiqiao.lesson6.beanConstructor;

import com.huiqiao.lesson6.beanConfig.Component.UserDao;
import com.huiqiao.lesson6.beanConfig.Component.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class BeanConstructorConfig {

    @Autowired
    UserDao userDao;

    @Autowired
    UserService userService;

    @Bean
    public BeanConStructorAtBeanClass beanConStructorAtBeanClass() {
        return new BeanConStructorAtBeanClass(userDao, userService);
    }
}
